package com.gxa.modules.model.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 作者 yuanqiufeng
 * Date 2022/11/16
 */
@Data
public class InpatientConsumptionRecordsDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("住院缴费记录id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("患者的id")
    @TableField("patient_id")
    private Integer patientId;

    @ApiModelProperty("住院缴费订单的id")
    @TableField("in_order_id")
    private Integer inOrderId;

    @ApiModelProperty("住院信息的id")
    @TableField("in_info_id")
    private Integer inInfoId;

    @ApiModelProperty("业务类型：0:住院缴费")
    @TableField("type")
    private Integer type;

    @ApiModelProperty("操作时间（创建时间）")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date createTime;


    @ApiModelProperty("住院号")
    @TableField("inpatient_num")
    private String inpatientNum;



    @ApiModelProperty("支付金额")
    @TableField("order_total")
    private Double orderTotal;

    @ApiModelProperty("支付方式：0微信支付，1住院预交金扣费")
    @TableField("pey_method")
    private Integer peyMethod;


    @ApiModelProperty("订单状态：0未支付，1已支付")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("订单编号，后台生成")
    @TableField("order_num")
    private String orderNum;



    @ApiModelProperty("患者的姓名")
    @TableField("name")
    private String name;









}
